package com.ruoyi.system.controller;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.security.annotation.PreAuthorize;
import com.ruoyi.system.domain.dto.ConsumerDto;
import com.ruoyi.system.domain.dto.ParkingDto;
import com.ruoyi.system.service.ParkingService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/parking")
public class ParkingController {
    @Resource
    ParkingService parkingService;
    @PostMapping("/list")
    public AjaxResult list(@RequestBody ParkingDto parkingDto) {
        return parkingService.ParkingList(parkingDto);
    }

}
